package com.责任链模式;

/**
 * 处理请求
 * @author Fang Ruichuan
 * @date 2022-09-03 12:44
 */
public interface Ratify {
    // 处理请求
    Result deal(Chain chain);

    // 对request和Result封装，用来转发
    interface Chain {
        // 获取当前request
        Request request();

        // 转发request
        Result proceed(Request request);
    }
}
